package ace.module.oauth2.server.core.impl.dao.repository;

import ace.cmp.spring.data.jdbc.querydsl.core.repository.QuerydslJdbcBaseRepository;
import ace.module.oauth2.server.core.impl.constant.Oauth2ServerCoreConstant;
import ace.module.oauth2.server.core.impl.dao.entity.Oauth2RegisteredClient;
import com.baomidou.dynamic.datasource.annotation.DS;
import org.springframework.stereotype.Repository;

/**
 * oauth2 客户端 repository.
 *
 * @author Caspar
 */
@DS(Oauth2ServerCoreConstant.DEFAULT_DATA_SOURCE_NAME)
@Repository
public interface Oauth2RegisteredClientRepository extends QuerydslJdbcBaseRepository<Oauth2RegisteredClient, String> {

  Oauth2RegisteredClient getByClientId(String clientId);
}